﻿using Sustainalytics.Entities;
using System;

namespace Sustainalytics.News.Service
{
    public class NewsTagDto
    {
        public Guid Id { get; set; }
        public string Name { get; set; }


        public NewsTagDto LoadFrom(NewsTag data)
        {
            this.Id = data.Id;
            this.Name = data.Name;

            return this;
        }

        public void SaveTo(NewsTag data)
        {
            data.Id = this.Id;
            data.Name = this.Name;
        }
    }
}
